import { http } from '@/utils/request'

// 获得钱包
export const getWallet = () => {
    return http({
        method: 'GET',
        url: `/app-api/worker/wallet/get`,
    })
}
// 查询钱包流水
export const getWalletPage = (data: any) => {
    return http({
        method: 'GET',
        url: `/app-api/worker/wallet-transactions/page`,
        data
    })
}
// 查询客户支出
export const getPayOrderAllMoney = () => {
    return http({
        method: 'GET',
        url: `/app-api/customer/orderAppPay/getPayOrderAllMoney`,
    })
}
// 微信小程序提现
export const brokerageWithdraw = (openId: string) => {
    return http({
        method: 'GET',
        url: `/app-api/worker/order/brokerageWithdraw`,
        data: {
            openId
        }
    })
}
// 微信小程序提现(申请结算)
export const brokeragewithdrawApply = (openId: string) => {
    return http({
        method: 'GET',
        url: `/app-api/worker/order/brokerageWithdrawApply`,
        data: {
            openId
        }
    })
}